package com.jic.market.common.exception;


import lombok.AllArgsConstructor;
import lombok.Getter;

/** 
 * 自定义异常枚举
 *
 * @author guohuayong
 * @date 2020/2/24 17:23
 **/
@AllArgsConstructor
public enum MarketErrorCodeEnum implements BaseEnum<String> {
	SQL_ERROR("8088001", "sql失败"),
	PARAM_ERROR("8088002", "参数错误"),
	SYS_ERROR("9999", "系统错误"),
	TEMPLATE_NAME_EXIST_ERROR("0004", "模板名称已存在"),
	TYPE_ERROR("7777", "标签分类已被使用"),
	TAGNAME_ERROR("8888", "标签名称已被使用"),
	CATEGORY_ERROR("8888", "分类名称已被使用"),

	PROMOTION_ING_CHECK_ERROR("2000", "无效活动"),
	PROMOTION_CHECK_ERROR("2001", "无此活动"),

	GROUP_CANCEL_FAIL("2602","开团取消失败"),

	ORDER_IS_EXISTE("2101", "订单已存在"),
	ORDER_IS_NOT_CREATE("2102", "订单不是创建状态"),
	ORDER_IS_NOT_PAY("2103", "订单未支付"),

	GROUP_NO_PROM_INFO("2601","无此活动信息"),
	GROUP_NOT_IN_PROM_TIME("2602","不在活动时间内"),
	GROUP_STORE_LIMIT("2603","超过店铺限制"),
	GROUP_INDIVIDUAL_LIMIT("2604","超过用户单渠道限制"),
	GROUP_HAS_CIRCLE("2605","已经成团"),
	GROUP_HAS_FULL_NUM("2606","参团人数已经到最大团员人数"),
	GROUP_STOCK_ZORE("2607","该商品库存为0"),
	GROUP_JOIN_TIME("2608","该用户大于个人参团限制次数"),
	GROUP_NO_INST_INFO("2609","无此开团信息"),
	GROUP_LAUNCH_JOIN("2610","开参团活动未知异常"),
	GROUP_LAUNCH_JOIN_CHECK("2611","开参团活动未知异常"),
	GROUP_LAUNCH_JOB("2612","远程调用拼团job失败"),


	COUPON_NOT_USE("5000","优惠劵不可用"),

	ALLOCATION_NOT_EXISTE_ERROR("2200", "无此分摊比例配置"),
	ALLOCATION_THEME_NOT_EXISTE_ERROR("2201", "无此分摊比例活动配置"),
	;

	@Getter
	private String code;

	@Getter
	private String message;
}

